package cn.com.headfree.sysmenu.service;

import cn.com.headfree.entity.isc.User;
import cn.com.headfree.sysmenu.entity.TSysMenu;
import cn.com.headfree.sysmenu.vo.TreeSelect;
import com.gta.edu.sdk.common.dto.Page;

import java.util.List;

public interface IMenuService {
    List<TSysMenu> findMenuList(TSysMenu sysMenu, User user);
    List<TSysMenu> findMenuListByMenuName(String menuId, String menuName);
    List<TreeSelect> buildMenuTreeSelect(List<TSysMenu> menus);
    List<TSysMenu> buildMenuTree(List<TSysMenu> menus);
    List<String> selectMenuIdListByRoleId(String roleId);
    List<TSysMenu> selectMenuListByRoleId(String roleId);
    boolean hasChildByMenuId(String menuId);
    boolean checkMenuExistRole(String menuId);
    void addMenu(TSysMenu sysMenu);
    void updateMenu(TSysMenu sysMenu);
    void deleteMenu(String[] menuIds);
    void deleteMenuById(String menuId);
}
